package cn.edu.thu.laud.lasql.processor;

import java.util.Map;

import org.apache.cassandra.cql.CreateIndexStatement;
import org.apache.cassandra.cql.Term;
import org.apache.cassandra.thrift.IndexType;

public class LaUDCreateIndexStatement extends CreateIndexStatement {

	private IndexType indexType;
	private Map<String, String>index_options;
	public LaUDCreateIndexStatement(String indexName, String columnFamily,
			Term columnName,Map<String, String>map) {
		super(indexName, columnFamily, columnName);
		this.index_options=map;
		if(this.index_options!=null){
			this.indexType=IndexType.CUSTOM;
		}else{
			this.indexType=IndexType.KEYS;
		}
	}
	public IndexType getIndexType() {
		return indexType;
	}
	public void setIndexType(IndexType indexType) {
		this.indexType = indexType;
	}
	public Map<String, String> getIndex_options() {
		return index_options;
	}
	public void setIndex_options(Map<String, String> index_options) {
		this.index_options = index_options;
	}
	

}
